var t = null;
t = setInterval(time, 1000);

function time() {
	dt = new Date();
	var y = dt.getFullYear();
	var M = dt.getMonth();
	var d = dt.getDate();
	var h = dt.getHours();
	var m = dt.getMinutes();
	var s = dt.getSeconds();
	document.querySelector('.showTime').innerHTML = '当前时间：' + y + '年' + M + '月' + d + '日' + h + '时' + m + '分' + s + '秒'
}
